package com.yima.baseproj.module.app.kindergarten;

import com.yima.baseproj.module.sys.kindergarten.KindergartenEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/api/app/kg")
@RestController
public class AppKgController {

    @Autowired
    private AppKgService appKgService;

    @GetMapping("/findByCode/{kgCode}")
    public KindergartenEntity findByCode(@PathVariable String kgCode){
        return appKgService.findByKgCode(kgCode);
    }
}
